home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.sept.archive / 000046_crash!rcbins.m…net.edu!AMONROE_Tue, 21 Sep 93 03:00:26 PST.msg < prev    next >
Text File  |  1993-11-02  |  1KB  |  35 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 21 Sep 93 03:00:26 PST
  3. Received: from byrd.mu.wvnet.edu by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0oelV7-0000oKC; Mon, 20 Sep 93 06:41 PDT
  5. Received: by byrd.mu.wvnet.edu (5.57/Ultrix3.0-C)
  6.     id AA10865; Mon, 20 Sep 93 09:42:20 -0400
  7. Received: From RCBINS/WORKQUEUE by bins00.mu.wvnet.edu
  8.           via Charon-4.0A-VROOM with IPX id 100.930920085419.576;
  9.           20 Sep 93 09:38:26 +0500
  10. Message-Id: <MAILQUEUE-101.930920085406.288@rcbins.mu.wvnet.edu>
  11. Date:         20 Sep 93 08:54:06 EST
  12. Priority: normal
  13. X-Mailer:     Pegasus Mail v2.3 (R5).
  14. From: "R. Alan Monroe"  <AMONROE@rcbins.mu.wvnet.edu>
  15. To: amigae@bkhouse.cts.com
  16. Subject: Fixed text strings
  17.  
  18.  
  19. I'm trying to figure out how to write a fortune type of program,
  20. that has (for the first version anyway) 16 or so fixed sayings built
  21. in to the exe (no extrnal textfiles this time around).  What's the
  22. most efficient and robust way?
  23. I thought that for so few items that I should use
  24. SELECT randomnumber
  25.   CASE randomnumber=1
  26.     TextF("First fortune")
  27.   CASE randomnumber=2
  28.     TextF("Second fortune")
  29. etc.
  30.  
  31. or would it be more memory efficient/faster to toy around with
  32. pointers?  And have the texts as dc.b's (or the e equivalent thereof)
  33.  
  34. Have fun
  35. Alan